package com.ruoyi.commonService;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class MobileRegisterRequest {
    @NotBlank
    @Pattern(regexp = "^1[3-9]\\d{9}$")
    private String phone;

    @NotBlank
    @Size(min = 6, max = 6)
    private String smsCode;


    private String userName;

    @NotNull
    private FaceRecognitionResult faceRecognitionResult;

    @Data
    public static class FaceRecognitionResult {
        private boolean verified;
        private String faceId; // 人脸特征ID
        private String imageHash; // 人脸图片哈希
    }
}
